
ENTRYOFFSET = 0xc0001500

run:
	nasm -I include/ mbr.S -o mbr.bin
	nasm -I include/ loader.S -o loader.bin
	dd if=mbr.bin of=hd60M.img bs=512 count=1 conv=notrunc
	dd if=loader.bin of=hd60M.img bs=512 seek=2 count=4 conv=notrunc
	gcc -c -o kernel/main.o kernel/main.c
	ld kernel/main.o -Ttext $(ENTRYOFFSET) -e kernel/main -o kernel/kernel.bin
	dd if=kernel/kernel.bin of=hd60M.img bs=512 count=200 seek=9 conv=notrunc
	rm -rf *.bin *.o kernel/*.o


